import request from "../config/request";
/**
 * 对API全局的一个管理
 */
export default {
    getTableData(){
        return request({
            url:'/home/getTableData',
            method:'get',
        });
    },
    getCountData(){
        return request({
            url:'/home/getCountData',
            method:'get',
        });
    },
    getUserData(data){
        return request({
            url:'/user/search',
            method:'post',
            data,
        });
    },
    deleteUser(data){
        return request({
            url:'/user/delete',
            method:'get',
            data,
        });
    },
    saveUser(data){
        return request({
            url:'/user/save',
            method:'post',
            data,
        });
    }
}